package cn.chen.proxy;

import cn.chen.proxy.compiler.InvocationHander;
import cn.chen.proxy.compiler.TimeHander;

public class Client {
    public static void main(String[] args) throws Exception {
        Tank t = new Tank();
        InvocationHander th = new TimeHander(t);
        Moveable m = (Moveable) Proxy.newProxyInstance(Moveable.class, th);
        m.move();
    }
}
